package com.fm618.flex
{
	import mx.containers.Canvas;
	import mx.controls.ProgressBar;
	

	public class SplashScreen extends Canvas
	{
		/**
		 * 进度条
		 */
		private var process1:ProgressBar;
		
		public function SplashScreen()
		{
			super();
			
			this.process1 = new ProgressBar();
			this.process1.indeterminate = true;
			//this.process1.x = this.width/2 - process1.width/2;
			this.process1.setStyle('horizontalCenter', '0');
			this.process1.setStyle('verticalCenter', '0');
			this.process1.setStyle("textAlign", "center");
			this.process1.setStyle("textIndent", 60);
			this.process1.width = 200;
			addChild(this.process1);
			
			
		}
		
		/**
		 * 设置进度条下方显示的文字
		 */
		public function setLabel(value:String):void{
			this.process1.label = value;
			
		}
		/**
		 * 设置进度条的高度
		 */
		public function setTrackHeight(value:Number):void{
			this.process1.setStyle("trackHeight", value);
		}
		
	}
}